package com.jiazhong.basic.shuxin.design.适配器模式;

public class App {

    public static void main(String[] args) {
        // 手机
        Phone phone = new Phone();
        // 电源
        Power power = new Power();
        // 充电器
        PowerAdapter adapter = new PowerAdapter(phone, power);
        // 充电
        phone.charge(adapter);
    }
}
